import App from './App'

import Pay from './common/banmi/pay.js';
import Bmupload from './common/bmupload/zenkuai_upload.js';
import Banmikeji from './common/banmi/banmikeji.js';
import filters from './common/bmupload/filters.js'
import Http from './common/banmi/request.js';
import store from './store'

// 引入全局uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
Vue.prototype.Http = Http;
Object.keys(filters).map(v => {
	Vue.filter(v, filters[v])
})
Vue.prototype.Bmupload = Bmupload;
Vue.prototype.Banmikeji = Banmikeji;
Vue.prototype.Pay = Pay;
Vue.prototype.globalVar = uni.getStorageSync('storage_key');
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
app.$mount()
// #endif
// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif